file(GLOB ALL_INI_FILE "${CMAKE_CURRENT_LIST_DIR}/default/*.ini")
file(GLOB ALL_XML_FILE "${CMAKE_CURRENT_LIST_DIR}/default/*.xml")
file(GLOB ALL_NET_FILE "${CMAKE_CURRENT_LIST_DIR}/default/*.network")
# file(GLOB C_ROBMOD "${CMAKE_CURRENT_LIST_DIR}/default/.C*.ini")
# file(GLOB MINI_ROBMOD "${CMAKE_CURRENT_LIST_DIR}/default/.CO*.ini")
# file(GLOB MINI_ROBMOD "${CMAKE_CURRENT_LIST_DIR}/default/.AC*.ini")

install(FILES
    ${ALL_INI_FILE}
    ${ALL_XML_FILE}

    #网络与系统配置
    ${ALL_NET_FILE}

    #配置文件
    ${CMAKE_CURRENT_LIST_DIR}/default/redis.conf
    ${CMAKE_CURRENT_LIST_DIR}/default/jkzuc.nml

    DESTINATION configs/default
    PERMISSIONS OWNER_READ GROUP_READ WORLD_READ
)

install(DIRECTORY 
${CMAKE_CURRENT_LIST_DIR}/vision 
DESTINATION configs
)

install(DIRECTORY
${CMAKE_CURRENT_LIST_DIR}/default/cab
${CMAKE_CURRENT_LIST_DIR}/default/rob
${CMAKE_CURRENT_LIST_DIR}/default/ecat
DESTINATION configs/default
)